#ifndef UTIL_BUFFER_H_
#define UTIL_BUFFER_H_

typedef struct {
	U32 length;
	U32 size;
	U32 writingPointer;
	U32 readingPointer;
	U8 *data;
} util_buffer_CircularQueue;

extern void util_buffer_circular_queue_init(util_buffer_CircularQueue *buffer, U32 length, U8 *data);
extern void util_buffe_circular_queuer_clear(util_buffer_CircularQueue *buffer);
extern BOOL util_buffer_circular_queue_insert(util_buffer_CircularQueue *buffer, U8 *byte, U32 size);
extern BOOL util_buffer_circular_queue_remove(util_buffer_CircularQueue *buffer, U8 *byte, U32 size);

#endif /*UTIL_BUFFER_H_*/
